package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.system.domain.WmsWarehouseLocation;
import com.ruoyi.system.domain.vo.SelectVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 货位信息Mapper接口
 *
 * @author ruoyi
 * @date 2025-06-17
 */
public interface WmsWarehouseLocationMapper
{
    /**
     * 查询货位信息
     *
     * @param locationId 货位信息主键
     * @return 货位信息
     */
    public WmsWarehouseLocation selectWmsWarehouseLocationByLocationId(Long locationId);

    /**
     * 查询货位信息列表
     *
     * @param wmsWarehouseLocation 货位信息
     * @return 货位信息集合
     */
    public Page<WmsWarehouseLocation> selectWmsWarehouseLocationList(@Param("page")Page<WmsWarehouseLocation> page,@Param("bo") WmsWarehouseLocation wmsWarehouseLocation);

    /**
     * 新增货位信息
     *
     * @param wmsWarehouseLocation 货位信息
     * @return 结果
     */
    public int insertWmsWarehouseLocation(WmsWarehouseLocation wmsWarehouseLocation);

    /**
     * 修改货位信息
     *
     * @param wmsWarehouseLocation 货位信息
     * @return 结果
     */
    public int updateWmsWarehouseLocation(WmsWarehouseLocation wmsWarehouseLocation);

    /**
     * 删除货位信息
     *
     * @param locationId 货位信息主键
     * @return 结果
     */
    public int deleteWmsWarehouseLocationByLocationId(Long locationId);

    /**
     * 批量删除货位信息
     *
     * @param locationIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWmsWarehouseLocationByLocationIds(Long[] locationIds);

    public List<SelectVo> getWmsWarehouseLocationSelect();

    public List<SelectVo> getWmsWarehouseLocationSelectByRackId(Long rackId);
}
